<script>
function checkform(){
	var name=$('input[name="name"]').val();
	if(trim(name)==''){
		alert('请填写球队名称!');
		return false;
	}
	commonEffection.setLoading();
	$('#teamcForm').submit();
}
	upload.type='games';
	upload.formid='teamcForm';
	upload.setAppend=function(imgurl){
		return '<div style="margin:10px"><a href="'+imgurl+'" target="_blank"><img style="height:100px;width:100px;vertical-align:middle;border:1px #cccccc dashed" src="'+imgurl+'" /></a> 图片说明:<input type="text" name="imgIntro[]" value="" /><input type="hidden" name="imgUrl[]" value="'+imgurl+'" /> <input type="button" value="删除" onclick="upload.delimg(this);" /></div>';
	}
</script>
<style>
.current{
	background:repeat-x #FFFFFF bottom;
	text-decoration: underline;
}
</style>
<div class="frame_pmDiv">
    <div class="pmflDiv">
        <ul>
            <li><a class="current" href="administrator<?=CHOSING_DE?>games<?=CHOSING_DE?>index">球队管理</a></li>
            <li><a href="administrator<?=CHOSING_DE?>games<?=CHOSING_DE?>scence">球赛管理</a></li>
            <li><a href="administrator<?=CHOSING_DE?>games<?=CHOSING_DE?>bets">下注记录</a></li>
            <li><a href="administrator<?=CHOSING_DE?>games<?=CHOSING_DE?>exchange">兑换记录</a></li>
            <li><a href="administrator<?=CHOSING_DE?>games<?=CHOSING_DE?>gifts">礼品管理</a></li>
        </ul>
    </div>
    <div class="pmItemDiv">
        <form name="teamcForm" id="teamcForm" enctype="multipart/form-data"  action="administrator<?=CHOSING_DE?>games<?=CHOSING_DE?>doteamc" method="post">
        <div>球队名称：<input type="text" name="name" id="name" /></div>
        <div>
            上传图片：<span><input name="productpic" type="file" id="productpic" /></span> <input type="button" onclick="upload.uploadimg(this);" value="上传" />　( 可连续上传多幅 )
        </div>
        <div>
            <div id="productImages"></div>
            <iframe id="productIframe" width="0" height="0" name="productIframe"></iframe>
        </div>
        <div>
            <input name="button2" type="button" class="iput" value="保 存"   onclick="checkform();" />
            <input name="button" type="button" class="iput" value="返 回" onclick="commonEffection.confirmBack();" />
        </div>
        </form>
    </div>
</div>